const odooModelName = 'sale.order'

const values_default = {}

const domain_default = {}

const fields_default = {}

const filterItems = ['name___like', 'date_order', 'partner_id']
const columns = [
  'company_id__name',
  'state__name',
  'invoice_status__name',
  'name',
  'date_order',
  'commitment_date',
  'partner_id__name',
  'partner_shipping_id__name',
  'user_id__name',
  'amount_total'
]

const table_expand = {
  field: 'order_line__objects',
  type: 'table',
  columns: [
    'product_id__name',
    'name',
    'product_uom_qty',
    'price_unit',
    'price_subtotal'
  ]
}

const formItems = [
  'date_order',
  'commitment_date',
  'partner_id',
  'partner_shipping_id',
  'user_id'
]
const Model = {
  name: odooModelName,

  configs: {
    values_default,
    domain_default,
    fields_default,
    columns,
    table_expand,
    filterItems,
    formItems,
    handle: {
      edit: { hidden: true }
    }
  }
}
export default Model
